package cardbs.dao;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;

public class DBUtilities {

	private static EntityManagerFactory emf = null;

	static {
		emf = Persistence.createEntityManagerFactory("carservice");
	}

	/**
	 * Return Entity Manager
	 * 
	 * @return
	 */
	public static EntityManager getEntityManager() {
		return emf.createEntityManager();
	}
}
